/*
 * Copyright © 2004-2014 chenYuan. All rights reserved.
 * @Website:wwww.jspx.net
 * @Mail:39793751@qq.com
 * @author: chenYuan , 陈原
 * @License: Jspx.net Framework Code is open source (LGPL)，Jspx.net Framework 使用LGPL 开源授权协议发布。
 * @jvm:jdk1.6+  x86/amd64
 *
 */
package com.jspx.network.ftp;

import com.jspx.utils.StreamEvent;

/**
 * Created by IntelliJ IDEA.
 * User: chenYuan
 * Date: 2010-9-22
 * Time: 19:33:33
 *
 */
public class ConsoleDownloadStreamEvent implements StreamEvent {

   private long size = 0;
   public void setFullSize(long fullSize)
   {
        if (fullSize != size)
        {
            System.out.println("下载中断");
        } else
           System.out.println("下传完成，文件大小为:" + fullSize/1024 + "k");

   }

    public void setSize(long size)
    {
         this.size = size;
          System.out.print("下传完成:" + size/1024 + "k");

    }
}